package demo3_i;

public class Dog extends Animal{

    public Dog(String name, int age){
        super(name, age);
        System.out.println("构造代码块Dog");
    }
    {
        System.out.println("实例代码块Dog");
    }
    static{
        System.out.println("静态代码块Dog");
    }
    public void bark(){
        System.out.println(this.name + "正在汪汪汪");
    }


}
